package com.newly.common.base.entity.sys.captcha.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 图形验证码传输对象
 *
 * @author guan
 * @time 2020/09/12 18:09
 */
@Data
public class CaptchaDto {
    /**
     * 图形验证码id
     */
    @NotBlank(message = "captchaId can't be empty")
    @ApiModelProperty("图形验证码id")
    private String captchaId;

    /**
     * 验证码
     */
    @NotBlank(message = "code can't be empty")
    @ApiModelProperty("验证码")
    private String code;

    /**
     * 有效期，单位为秒
     */
    private Long expireTime;
}
